#pragma once

#include <iostream>

#include <cstdlib>
#include <vector>

#include <time.h>
#include <chrono>

namespace Timer
{
	static std::chrono::time_point<std::chrono::system_clock> start;
	static std::chrono::time_point<std::chrono::system_clock> end;
	static size_t elapsed_time = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();

	void Start()
	{
		std::cout << "\nStarting... \n";
		start = std::chrono::system_clock::now();
	}

	void Stop(std::string Name)
	{
		end = std::chrono::system_clock::now();
		elapsed_time = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();
		std::cout << Name.c_str() << " duration:		" << elapsed_time << "\n";
	}
}